<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>编辑商品信息</title>
</head>
<body>
<form action="/goods/goodsDetail/update" method="post">
  商品编号：<input type="text" name="goodsId" th:value="${goods.goodsId}" readonly><br/>
  商品名称：<input type="text" name="goodsName"  th:value="${goods.goodsName}" readonly><br/>
  商品图片地址：<input type="text" name="goodsImg" th:value="${goods.goodsImg}" readonly disabled> <br/>
  商品原价：<input type="text" name="price"  th:value="${goods.price}" readonly disabled><br/>
  商品秒杀价：<input type="text" name="secKillPrice" th:value="${goods.secKillPrice}"><br/>
  商品库存数量：<input type="text" name="goodsCount" th:value="${goods.goodsCount}"><br/>
  秒杀开始时间：<input type="datetime-local" name="startTime" th:value="${#dates.format(goods.startTime,'yyyy-MM-dd HH:mm:ss')}" pattern="yyyy-MM-dd HH:mm:ss"><br/>
  秒杀结束时间：<input type="datetime-local" name="endTime" th:value="${#dates.format(goods.endTime,'yyyy-MM-dd HH:mm:ss')}" pattern="yyyy-MM-dd HH:mm:ss"><br/>
  <button type="submit">确认修改</button>
  <a th:href="@{/goods/toList}"><button type="button">返回</button></a>
</form>
</body>
</html>